package com.carkeeper.user.service;

import com.carkeeper.user.pojo.Department;
import com.carkeeper.user.pojo.Employee;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface AdminService {

    /**
     * 修改员工信息(添加员工的用户名和密码)
     * @param employee
     * @return
     */
    int updateAdmin(Employee employee, Integer roleId);

    /**
     * 查询所有用户列表
     * @return
     */
    List<Map<String, Object>> findAdminList();

    /**
     * 修改用户状态
     * @param employeeId
     * @return
     */
    int updateStatus(Integer employeeId);

    /**
     * 条件分页查询
     * @param searchMap
     * @param page
     * @param size
     * @return
     */
    Page<Map<String, Object>> findPage(Map<String, Object> searchMap, int page, int size);

    Boolean Login(String username, String password);

    /**
     * 登录认证
     * @param username
     * @return
     */
    Employee findById(String username);
}
